% plot the number of photos by week

MAX_DATE = 734428.532;
MIN_DATE = 732315.000;
Start_Date = MIN_DATE;
load FlickrAmsterdam;
Taken_Time = data(:,4);
figure;
hold on;
i = 1;
a = [];
while Start_Date + 6 <= MAX_DATE
    End_Date = Start_Date + 6;
    idx = (Taken_Time >= Start_Date) & (Taken_Time <= End_Date);
    photoNum = sum(idx);
    Start_Date = Start_Date + 7;
    a = [a,photoNum];
    i = i + 1;
end
plot(a)
axis auto